/*
----------------------------------------------------------------------------
Copyright (c) 2007 - 2009, Wangxing SHI	<swxlion@gmail.com>

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above
	  copyright notice, this list of conditions and the
	  following disclaimer.

    * Redistributions in binary form must reproduce the above
	  copyright notice, this list of conditions and the following
	  disclaimer in the documentation and/or other materials
	  provided with the distribution.

    * Neither the copyright holder's name nor the names of its
	  contributors may be used to endorse or promote products
	  derived from this software without specific prior written
	  permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----------------------------------------------------------------------------
*/

/*------------------------- BasalRecorder.cpp -----------------------------*/
/*===========================================================================
FILE: BasalRecorder.cpp
Author: Wangxing SHI (swxlion)
Version: 0.0.1
Date: 2009-07-07

File Description:
    Implement the BasalRecorder.

Dependencies:
    Platform: Platform Independent.

History:
    version        author        date       description
	----------------------------------------------------
	0.0.1          swxlion       09-07-07   Created the first version.
===========================================================================*/
#include "RecorderPool.hpp"

using namespace LunaLog::ErrorCode;
/*===============================================================================
FUNCTION DEFINITIONS: Basal Recorder Functions: Class BasalRecorder
=============================================================================== */
/*===========================================================================

FUNCTION: LunaLog::BasalRecorder::GetLocalTime

DESCRIPTION:
  Calculate the local time & date.

PARAMETERS:
	time [in] - The original time data return by time().
	timezone [in] - Time zone. e.g. The Beijing time zone is +8.
	tm_time [out] - The tm structure contain the local time & date.

RETURN VALUE:
   None.

NOTICE:
   1. The function localtime() declared in "time.h" isn't thread safety.
   2. Follow the practice of localtime() in "time.h", the returned year need to be added 1900 for the current year;
      and the returned month need to be added 1 for the current month.
   3. This function modified form Internet. And the original author is unknown. For the know, please inform.
===========================================================================*/
/*===============================================================================
  CONSTRUCTOR AND DESTRUCTOR DEFINITIONS
=============================================================================== */
LunaLog::BasalRecorder::BasalRecorder(): pRecorderList(0), DataSectionQueue(), clsRMNMP(),
iWorkLevel(LunaLog::Constant::LogLevel::Warn), enWorkType(LunaLog::BasalRecorder::Filter),
bIsInited(false), bIsFrozen(false), bIsSyncMode(true), bIsStringMode(false)
{
	//-- Required to DO.
}
LunaLog::BasalRecorder::~BasalRecorder()
{
	//-- Required to DO.
}
